<?php

require_once('config.php');
require_once('lib/adodb/adodb.inc.php');
require_once('lib/adodb/adodb-active-record.inc.php');

$db = ADONewConnection($CFG->dbtype);
$db->debug = true;
$db->Connect($CFG->dbhost, $CFG->dbuser, $CFG->dbpass, $CFG->dbname);

ADOdb_Active_Record::SetDatabaseAdapter($db);
ADOdb_Active_Record::$_quoteNames = '111';


class Album extends ADOdb_Active_Record { 
    function ret($v) {return $v;} 
}

$album = new Album();
$album->Load('id=2');

print_object($album);

?>